/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.ajz.entity;

import org.hibernate.validator.constraints.Length;
import com.jeesite.common.entity.Extend;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 检查附件Entity
 * @author cww
 * @version 2019-04-30
 */
@Table(name="ajz_file", alias="a", columns={
		@Column(name="id", attrName="id", label="id", isPK=true),
		@Column(name="check_doc", attrName="checkDoc", label="检查文书"),
		@Column(name="check_png", attrName="checkPng", label="检查文书png"),
		@Column(name="check_pdf", attrName="checkPdf", label="检查文书pdf"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="zhenggai_doc", attrName="zhenggaiDoc", label="整改文书"),
		@Column(name="zhenggai_pdf", attrName="zhenggaiPdf", label="整改文书"),
		@Column(name="zhenggai_png", attrName="zhenggaiPng", label="整改文书"),
		@Column(name="fucha_doc", attrName="fuchaDoc", label="复查文书"),
		@Column(name="fucha_pdf", attrName="fuchaPdf", label="复查文书"),
		@Column(name="fucha_png", attrName="fuchaPng", label="复查文书"),
		@Column(name="record_process_id", attrName="recordProcessId", label="记录过程表id"),
		@Column(name="base_id", attrName="baseId", label="基础表id"),
		@Column(name="table_type", attrName="tableType", label="检查时对应的类型"),
		@Column(name="base_type", attrName="baseType", label="基本单位类型"),
		@Column(includeEntity=Extend.class, attrName="extend"),
	}, orderBy="a.update_date DESC"
)
public class AjzFile extends DataEntity<AjzFile> {
	
	private static final long serialVersionUID = 1L;
	private String checkDoc;		// 检查文书
	private String checkPng;		// 检查文书png
	private String checkPdf;		// 检查文书pdf
	private String zhenggaiDoc;		// 整改文书
	private String zhenggaiPdf;		// 整改文书
	private String zhenggaiPng;		// 整改文书
	private String fuchaDoc;		// 复查文书
	private String fuchaPdf;		// 复查文书
	private String fuchaPng;		// 复查文书
	private String recordProcessId;		// 记录过程表id
	private String baseId;		// 基础表id
	private String tableType;		// 检查时对应的类型
	private String baseType;		// 基本单位类型
	private Extend extend;		// 扩展字段
	
	public AjzFile() {
		this(null);
	}

	public AjzFile(String id){
		super(id);
	}
	
	@Length(min=0, max=255, message="检查文书长度不能超过 255 个字符")
	public String getCheckDoc() {
		return checkDoc;
	}

	public void setCheckDoc(String checkDoc) {
		this.checkDoc = checkDoc;
	}
	
	@Length(min=0, max=255, message="检查文书png长度不能超过 255 个字符")
	public String getCheckPng() {
		return checkPng;
	}

	public void setCheckPng(String checkPng) {
		this.checkPng = checkPng;
	}
	
	@Length(min=0, max=255, message="检查文书pdf长度不能超过 255 个字符")
	public String getCheckPdf() {
		return checkPdf;
	}

	public void setCheckPdf(String checkPdf) {
		this.checkPdf = checkPdf;
	}
	
	@Length(min=0, max=255, message="整改文书长度不能超过 255 个字符")
	public String getZhenggaiDoc() {
		return zhenggaiDoc;
	}

	public void setZhenggaiDoc(String zhenggaiDoc) {
		this.zhenggaiDoc = zhenggaiDoc;
	}
	
	@Length(min=0, max=255, message="整改文书长度不能超过 255 个字符")
	public String getZhenggaiPdf() {
		return zhenggaiPdf;
	}

	public void setZhenggaiPdf(String zhenggaiPdf) {
		this.zhenggaiPdf = zhenggaiPdf;
	}
	
	@Length(min=0, max=255, message="整改文书长度不能超过 255 个字符")
	public String getZhenggaiPng() {
		return zhenggaiPng;
	}

	public void setZhenggaiPng(String zhenggaiPng) {
		this.zhenggaiPng = zhenggaiPng;
	}
	
	@Length(min=0, max=255, message="复查文书长度不能超过 255 个字符")
	public String getFuchaDoc() {
		return fuchaDoc;
	}

	public void setFuchaDoc(String fuchaDoc) {
		this.fuchaDoc = fuchaDoc;
	}
	
	@Length(min=0, max=255, message="复查文书长度不能超过 255 个字符")
	public String getFuchaPdf() {
		return fuchaPdf;
	}

	public void setFuchaPdf(String fuchaPdf) {
		this.fuchaPdf = fuchaPdf;
	}
	
	@Length(min=0, max=255, message="复查文书长度不能超过 255 个字符")
	public String getFuchaPng() {
		return fuchaPng;
	}

	public void setFuchaPng(String fuchaPng) {
		this.fuchaPng = fuchaPng;
	}
	
	@Length(min=0, max=64, message="记录过程表id长度不能超过 64 个字符")
	public String getRecordProcessId() {
		return recordProcessId;
	}

	public void setRecordProcessId(String recordProcessId) {
		this.recordProcessId = recordProcessId;
	}
	
	@Length(min=0, max=64, message="基础表id长度不能超过 64 个字符")
	public String getBaseId() {
		return baseId;
	}

	public void setBaseId(String baseId) {
		this.baseId = baseId;
	}
	
	@Length(min=0, max=255, message="检查时对应的类型长度不能超过 255 个字符")
	public String getTableType() {
		return tableType;
	}

	public void setTableType(String tableType) {
		this.tableType = tableType;
	}
	
	@Length(min=0, max=500, message="基本单位类型长度不能超过 500 个字符")
	public String getBaseType() {
		return baseType;
	}

	public void setBaseType(String baseType) {
		this.baseType = baseType;
	}
	
	public Extend getExtend() {
		return extend;
	}

	public void setExtend(Extend extend) {
		this.extend = extend;
	}
	
}